<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::group(['prefix' => 'admin'], function () {
    // 后台登录
    Route::post('login', 'Admin\LoginController@login');
    // 系统配置
    Route::get('refund-address/list', 'Admin\SystemController@refund_address_list');
    Route::post('refund-address/add', 'Admin\SystemController@add_refund_address');
    Route::get('refund-address/details', 'Admin\SystemController@refund_address_details');
    Route::post('refund-address/edit', 'Admin\SystemController@edit_refund_address');
    Route::post('refund-address/del', 'Admin\SystemController@del_refund_address');
    Route::get('admin-log/list', 'Admin\SystemController@admin_log_list');
    // 财务管理
    Route::get('finance/mapping', 'Admin\FinanceController@finance_mapping');
    Route::get('collect-account/select', 'Admin\FinanceController@collect_account_select');
    Route::get('collect-account/list', 'Admin\FinanceController@collect_account_list');
    Route::post('collect-account/add', 'Admin\FinanceController@add_collect_account');
    Route::get('collect-account/details', 'Admin\FinanceController@collect_account_details');
    Route::post('collect-account/edit', 'Admin\FinanceController@edit_collect_account');
    Route::post('collect-account/del', 'Admin\FinanceController@del_collect_account');
    Route::post('collect-account/multi', 'Admin\FinanceController@multi_collect_account');
    Route::get('collect-account/bank', 'Admin\FinanceController@collect_account_bank');
    Route::get('trade-log/list', 'Admin\FinanceController@trade_log_list');
    Route::get('finance/total', 'Admin\FinanceController@finance_total');
    Route::get('withdraw-log/list', 'Admin\FinanceController@withdraw_log_list');
    // 商品模块
    Route::get('goods/mapping', 'Admin\GoodsController@goods_mapping');
    Route::get('goods/list', 'Admin\GoodsController@goods_list');
    Route::post('goods/add', 'Admin\GoodsController@add_goods');
    Route::get('goods/details', 'Admin\GoodsController@goods_details');
    Route::post('goods/edit', 'Admin\GoodsController@edit_goods');
    Route::post('goods/del', 'Admin\GoodsController@del_goods');
    Route::post('goods/multi', 'Admin\GoodsController@multi_goods');
    Route::get('goods/category', 'Admin\GoodsController@goods_category');
    Route::get('goods/brand', 'Admin\GoodsController@goods_brand');
    Route::post('spec/add', 'Admin\SpecController@add_spec');
    Route::post('spec-value/add', 'Admin\SpecValueController@add_spec_value');
    // 订单模块
    Route::get('order/mapping', 'Admin\OrderController@order_mapping');
    Route::get('order/list', 'Admin\OrderController@order_list');
    Route::get('order/details', 'Admin\OrderController@order_details');
    // 退款模块
    Route::get('refund/mapping', 'Admin\RefundController@refund_mapping');
    Route::get('refund/list', 'Admin\RefundController@refund_list');
    Route::get('refund/details', 'Admin\RefundController@refund_details');
});

